package com.czk.utils;

import com.czk.domain.ServerInfo;
import com.czk.server.NettyServer;
import io.netty.channel.Channel;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/4/29 11:02
 */
public class CacheUtil {
    /**
     * 缓存channel
     */
    public static Map<String, Channel> cacheChannel=new ConcurrentHashMap<>(16);
    /**
     * 缓存服务信息
     */
    public static Map<Integer, ServerInfo> cacheServerInfo=new ConcurrentHashMap<>(16);
    /**
     * 缓存服务端
     */
    public static Map<Integer, NettyServer> cacheNettyServer=new ConcurrentHashMap<>(16);
}
